import VueRouter from 'vue-router'
import Vue from 'vue'
import Find from '../views/Find.vue'
import My from '../views/My.vue'
import Part from '../views/Part.vue'
// 3.add
Vue.use(VueRouter)
// 4.创建
const routes = [
  {
    path: '/find',
    component: Find
  },
  {
    path: '/my',
    component: My
  },
  {
    path: '/part',
    component: Part
  }
]
const router =new VueRouter({
  routes
})
export default router